package com.alatus.service;

import java.util.Collection;
import java.util.List;
import java.util.concurrent.TimeUnit;

public interface RedisService {
    void setValue(String key,Object value);
    Object getValue(String key);
    Boolean removeValue(String key);
    Boolean expire(String key, Long timeOut, TimeUnit timeUnit);

    List<Object> rangeAll(String key);
    <V> Long listPush(String key, Collection<V> values);
}
